import 'package:flutter/material.dart';

class Goods {
  final int id;
  final String imagegUrl;
  final double price;
  final double discountPrice;
  final String name;
  final String type;
  final bool isHot;
  final int buyCount;
  final List<GuaranteeItem> guaranteeItemList;
  final List<Spec> specs;

  /// 商品计量单位
  final String unitName;
  Goods(
    this.id, {
    this.unitName,
    this.buyCount,
    this.imagegUrl,
    this.price,
    this.discountPrice,
    this.name,
    this.type,
    this.isHot,
    this.guaranteeItemList,
    this.specs,
  });

  List<String> getGuaranteeItemTitle() {
    if (this.guaranteeItemList != null) {
      return this.guaranteeItemList.map((f) {
        return f.title;
      }).toList();
    } else {
      return List<String>();
    }
  }

  GoodsSummary getSummery() {
    if (this.specs == null || this.specs.length == 0) {
      return GoodsSummary();
    }
    this.specs.sort((s1, s2) => (s1.price - s2.price).round());

    return GoodsSummary(
        description:
            "¥${this.specs[0].price}-${this.specs[this.specs.length-1].price}",
        stockCount: this.specs.map((f) => f.price).reduce((s1, s2) => s1 + s2).round(),
        imageUrls: this.specs.map((f) => f.imageUrls[0]).toList());
  }
}

class GoodsSummary{
  final String description;
  final int stockCount;
  final List<String> imageUrls;

  GoodsSummary({this.description, this.stockCount, this.imageUrls});
}
class Spec {
  ///商品编号
  final int id;

  ///描述
  final String description;

  ///相应商品规格的图片
  final List<String> imageUrls;

  ///库存数量
  final int stockCount;

  ///价格
  final double price;

  ///使用券价格
  final double useCouponPrice;

  Spec({
    this.id,
    this.description,
    this.imageUrls,
    this.stockCount,
    this.price,
    this.useCouponPrice,
  });
}

class GuaranteeItem {
  final IconData iconData;
  final String title;
  final String descirption;

  GuaranteeItem(
      {this.iconData = Icons.keyboard_arrow_right,
      this.title,
      this.descirption});
}

List<Goods> getGoods() {
  var goods = <Goods>[
    new Goods(
      1,
      name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
      price: 498,
      discountPrice: 200,
      imagegUrl:
          "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
      buyCount: 1200,
      unitName: "件",
      specs: <Spec>[
        Spec(
            id: 1,
            description: "黑色大号编织纹",
            stockCount: 124,
            price: 222,
            imageUrls: <String>[
              "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
            ]),
        Spec(
            id: 2,
            description: "红色大号编织纹",
            stockCount: 22,
            price: 44,
            imageUrls: <String>[
              "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN013zU1br1QhhsRjlig5_!!2056772008.jpg_200x200Q50s50.jpg",
            ]),
        Spec(
            id: 3,
            description: "黑色大号编织纹",
            stockCount: 124,
            price: 235,
            imageUrls: <String>[
              "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
            ]),
        Spec(
            id: 4,
            description: "黑色大号编织纹",
            stockCount: 64,
            price: 65,
            imageUrls: <String>[
              "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
            ]),
        Spec(
            id: 5,
            description: "香芋小号编织纹",
            stockCount: 124,
            price: 1245,
            imageUrls: <String>[
              "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN01PlenfX1Qhhp3fmeau_!!2056772008.jpg_200x200Q50s50.jpg",
            ])
      ],
      guaranteeItemList: <GuaranteeItem>[
        GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
        GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
        GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
        GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
        GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
        GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
        GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
        GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
        GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
        GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
        GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
        GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
        GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
        GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
        GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
        GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
        GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
        GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
        GuaranteeItem(
            title: "七天无理由退换", descirption: "满足相应条件时，消费者可申请 “七天无理由退换货”")
      ],
    ),
    new Goods(2,
        name: "北欧餐椅美式实木椅子靠背简约现代木质温莎椅复古典轻奢餐厅家用",
        price: 223,
        discountPrice: 200,
        imagegUrl:
            "https://gw.alicdn.com/bao/uploaded/i4/1112843841/O1CN01cJK9uf1eFDrgIjjdD_!!1112843841.jpg_500x500q90.jpg_.webp",
        buyCount: 1200,
        unitName: "件",
        specs: <Spec>[
          Spec(
              id: 1,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 2,
              description: "红色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN013zU1br1QhhsRjlig5_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 3,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 4,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 5,
              description: "香芋小号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN01PlenfX1Qhhp3fmeau_!!2056772008.jpg_200x200Q50s50.jpg",
              ])
        ],
        guaranteeItemList: <GuaranteeItem>[
          GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
          GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
          GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
          GuaranteeItem(
              title: "七天无理由退换", descirption: "满足相应条件时，消费者可申请 “七天无理由退换货”")
        ]),
    new Goods(3,
        name: "印度手工简约时尚北欧现代田园进口羊毛软包凳脚凳沙发凳矮凳墩子",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://gw.alicdn.com/bao/uploaded/i1/711281013/O1CN01fXIIQ71JLzn2Ll1gH_!!711281013-0-pixelsss.jpg_500x500q90.jpg_.webp",
        buyCount: 1200,
        unitName: "件",
        specs: <Spec>[
          Spec(
              id: 1,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 2,
              description: "红色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN013zU1br1QhhsRjlig5_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 3,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 4,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 5,
              description: "香芋小号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN01PlenfX1Qhhp3fmeau_!!2056772008.jpg_200x200Q50s50.jpg",
              ])
        ],
        guaranteeItemList: <GuaranteeItem>[
          GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
          GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
          GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
          GuaranteeItem(
              title: "七天无理由退换", descirption: "满足相应条件时，消费者可申请 “七天无理由退换货”")
        ]),
    new Goods(4,
        name: "正宗304食品级不锈钢 厨房 揉面板 烘培案板 和面板 擀面板大号",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://gw.alicdn.com/bao/uploaded/i1/354693975/TB2fhjCGuuSBuNjSsplXXbe8pXa_!!354693975.jpg_500x500q90.jpg_.webp",
        buyCount: 1200,
        unitName: "件",
        specs: <Spec>[
          Spec(
              id: 1,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 2,
              description: "红色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN013zU1br1QhhsRjlig5_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 3,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 4,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 5,
              description: "香芋小号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN01PlenfX1Qhhp3fmeau_!!2056772008.jpg_200x200Q50s50.jpg",
              ])
        ],
        guaranteeItemList: <GuaranteeItem>[
          GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
          GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
          GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
          GuaranteeItem(
              title: "七天无理由退换", descirption: "满足相应条件时，消费者可申请 “七天无理由退换货”")
        ]),
    new Goods(5,
        name: "稻谷藏库 DULTON 矮凳 金属方凳",
        price: 20,
        discountPrice: 8,
        imagegUrl:
            "https://gw.alicdn.com/bao/uploaded/i1/1743627517/O1CN01ghZDNG25OpnHmPtPS_!!1743627517.jpg_500x500q90.jpg_.webp",
        buyCount: 1200,
        unitName: "件",
        specs: <Spec>[
          Spec(
              id: 1,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 2,
              description: "红色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN013zU1br1QhhsRjlig5_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 3,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 4,
              description: "黑色大号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i1/2056772008/O1CN01JFPCbo1QhhpDpRxOu_!!2056772008.jpg_200x200Q50s50.jpg",
              ]),
          Spec(
              id: 5,
              description: "香芋小号编织纹",
              stockCount: 10024,
              price: 234,
              imageUrls: <String>[
                "https://gw.alicdn.com/bao/uploaded/i2/2056772008/O1CN01PlenfX1Qhhp3fmeau_!!2056772008.jpg_200x200Q50s50.jpg",
              ])
        ],
        guaranteeItemList: <GuaranteeItem>[
          GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
          GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
          GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
          GuaranteeItem(
              title: "七天无理由退换", descirption: "满足相应条件时，消费者可申请 “七天无理由退换货”")
        ]),
    new Goods(6,
        name: "AMABRO/日本进口绿色仙人掌/仙人球玻璃摆件/装饰品",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://gw.alicdn.com/bao/uploaded/i2/2980193228/TB2EwFaorRkpuFjSspmXXc.9XXa_!!2980193228.jpg_500x500q90.jpg_.webp",
        buyCount: 1200,
        guaranteeItemList: <GuaranteeItem>[
          GuaranteeItem(title: "假一赔四", descirption: "正品保障，假一赔四"),
          GuaranteeItem(title: "上门取退", descirption: "预约上门取件，最快1小时上门，取件后极速退款到账"),
          GuaranteeItem(title: "极速退款", descirption: "诚信用户在退货寄出后，享受极速退款到账"),
          GuaranteeItem(
              title: "七天无理由退换", descirption: "满足相应条件时，消费者可申请 “七天无理由退换货”")
        ]),
    new Goods(7,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(8,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(9,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(10,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(11,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(12,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(13,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(14,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(15,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(16,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(17,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(18,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(19,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(20,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(30,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl: "https://img.alicdn.com/bao/uploa>"),
    new Goods(31,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(32,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(33,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(34,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(35,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(36,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(37,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(38,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(39,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(40,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(41,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200),
    new Goods(42,
        name: "北欧美式复古工业风攀岩小人物壁挂背景墙面装饰艺术创意墙壁挂件",
        price: 498,
        discountPrice: 200,
        imagegUrl:
            "https://img.alicdn.com/bao/uploaded/i4/1125374441/O1CN011ig1P5jBA3kcbf5_!!0-item_pic.jpg_300x300q85s150.jpg_.webp",
        buyCount: 1200)
  ];
  return goods;
}

Goods getGoodsById(int id) {
  var goods = getGoods();
  return goods.firstWhere((item) => item.id == id);
}
